
symbols = '@#$%^&'
codes = [ord(symbol) for symbol in symbols if ord(symbol) > 27]
print(codes)

print(list(ord(symbol) for symbol in symbols))

lax_coordinates = (33.9425, -118.408056)
city, year, pop, chg, area = ('Tokyo', 2003, 32450, 0.66, 8014)
traveler_ids = [('USA', '31195855'), ('BRA', 'CE342567'), ('ESP', 'XDA205856')] 
for passport in sorted(traveler_ids):
    print('%s/%s' % passport)

for country, _ in traveler_ids:
    print(country)

import os
_, file_name=os.path.split('c:\\home\\work\\tele-manager')

a, *args, b = range(5)
print(a,args,b)

print('{:15} | {:^9} | {:^9}'.format('', 'lat.', 'long.'))


from collections import namedtuple 
City = namedtuple('City', 'name country population coordinates')
tokyo = City('Tokyo', 'JP', 36.933, (35.689722, 139.691667))
name = ['beijing', 'China', 23.2, (2,3)]
beijing = City(*name)
print(tokyo, beijing)
print(tokyo._asdict())

print('beijing' in beijing)


class Aclass:
    def run(self):
        print('hello')

alist = [Aclass() for i in range(10)]

b = [a.run() for a in alist]
print(b)

print('{:*^10}|{:^10}'.format(1,'bo'))   